﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NginxServiceHelper
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main(params string[] args)
        {
            if (args == null) args = Environment.GetCommandLineArgs();
            if (args != null && args.Length > 0)
            {
                // log4net.Config.XmlConfigurator.ConfigureAndWatch(new System.IO.FileInfo(string.Format("{0}.config", Process.GetCurrentProcess().MainModule.FileName)));
                Common.NginxService service = new Common.NginxService();
                service.Main(args);
                return;
            }
            App.Main();
        }
    }
}
